package com.hup.minicontroller.common.bluetooth.model;

import com.hup.minicontroller.common.bluetooth.handler.BtDataSplitCodecHandler;

import lombok.Data;
import lombok.Getter;

/**
 * socket收到的未知数据:[类别]没注册到解码器 {@link BtDataSplitCodecHandler#registerType(Class)} 的数据
 *
 * @author hugan
 * @date 2021/4/25
 */
@Data
public class BtUnknownData implements BaseBtDataPacket {

    @Getter
    private final int type;
    private final int dataLength;

    public BtUnknownData(int type, int dataLength) {
        this.type = type;
        this.dataLength = dataLength;
    }

}
